/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javax.print.DocFlavor.STRING;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import model.Usuario;

/**
 *
 * @author Administrador
 */
/*public class UsuarioMD5Test {

    private Usuario usuario;

    public UsuarioMD5Test() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
        usuario = new Usuario();
    }

    @After
    public void tearDown() {
        usuario = null;
    }

    @Test
    public void criptografar() {
        String res = "";
        res = Usuario.md5("123");
        System.out.println(res);
        assertEquals(res, "202cb962ac59075b964b07152d234b70");
    }

    @Test
    public void descriptografar() {
        String res = "";
        res = Usuario.md5("202cb962ac59075b964b07152d234b70");
        System.out.println(res);
        // o valor criptrografado nao pode ser o mesmo original apos passar pelo
        // MD5 novamente 
        assertNotSame(res, "123");
    }
}*/
